import request from '../utils/request'
const fn = () => {
  console.log(request, '我是requset')
}
// 获取列表
const fetchItems = (params = {}) => request.get('/itemlist', { params })
// 上传商品
const uploaditem = (params = {}) => request.post('/itemadd', params)
// 获取详情
const getItems = (params = {}) => request.get('/itemwrite', { params })
export {
  getItems,
  uploaditem,
  fetchItems,
  fn
}
